<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // Tue Dec 30 1980 10:20:20 GMT+0800 (中国标准时间)
      // Tue Dec 30 1980 10:20:20 UTC+0800 (中国标准时间)
      const str = '1980-12-30 10:20:20';
      const d = new Date(str);
      console.log(d.getFullYear());
      console.log(d.getMonth());
      console.log(d.getDate());
      console.log(d.getHours());
      console.log(d.getMinutes());
      console.log(d.getSeconds());
      console.log(d.getMilliseconds());
      console.log(d.getDay());
      console.log(d);
    </script>
  </body>
</html>
